#include "StringBuilder.h"
#include "util/Util.h"
using namespace yzrilyzr_util;
namespace yzrilyzr_lang{
	uint32_t & StringBuilder::operator[](u_index index){
		Util::checkIndex(index, length());
		return code_points[index];
	}
	StringBuilder & StringBuilder::deleteCharAt(u_index index){
		Util::checkIndex(index, length());
		code_points.erase(code_points.begin()+index);
		return *this;
	}
}